package com.aliyun.messagemgt.entities;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

public class InterfaceLogEntity {

    private Integer logId;

    @ExcelProperty(value = "消息源ID",index = 2)
    private String msgSourceId;

    @ExcelProperty(value = "推送目标",index = 1)
    private String operater;

    private String operateDept;

    private String operateDeptName;

    private Integer pushChannelType;
    /**
     * 渠道类型名称
     */
    @ExcelProperty(value = "渠道类型",index = 3)
    private String pushChannelTypeName;

    private Integer pushChannelId;

    @ExcelProperty(value = "渠道名称",index = 4)
    private String pushChannelName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ExcelProperty(value = "调用时间", index = 0, format = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getMsgSourceId() {
        return msgSourceId;
    }

    public void setMsgSourceId(String msgSourceId) {
        this.msgSourceId = msgSourceId == null ? null : msgSourceId.trim();
    }

    public String getOperater() {
        return operater;
    }

    public void setOperater(String operater) {
        this.operater = operater == null ? null : operater.trim();
    }

    public String getOperateDept() {
        return operateDept;
    }

    public void setOperateDept(String operateDept) {
        this.operateDept = operateDept == null ? null : operateDept.trim();
    }

    public String getOperateDeptName() {
        return operateDeptName;
    }

    public void setOperateDeptName(String operateDeptName) {
        this.operateDeptName = operateDeptName == null ? null : operateDeptName.trim();
    }

    public Integer getPushChannelType() {
        return pushChannelType;
    }

    public void setPushChannelType(Integer pushChannelType) {
        this.pushChannelType = pushChannelType;
    }

    public Integer getPushChannelId() {
        return pushChannelId;
    }

    public void setPushChannelId(Integer pushChannelId) {
        this.pushChannelId = pushChannelId;
    }

    public String getPushChannelName() {
        return pushChannelName;
    }

    public void setPushChannelName(String pushChannelName) {
        this.pushChannelName = pushChannelName == null ? null : pushChannelName.trim();
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public String getPushChannelTypeName() {
        return pushChannelTypeName;
    }

    public InterfaceLogEntity setPushChannelTypeName(String pushChannelTypeName) {
        this.pushChannelTypeName = pushChannelTypeName;
        return this;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}